<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>Dashboard Template for Bootstrap</title>
		<!-- Bootstrap core CSS -->
		<link href="asserts/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">

		<!-- Custom styles for this template -->
		<link href="asserts/css/dashboard.css" th:href="@{/asserts/css/dashboard.css}" rel="stylesheet">
		<style type="text/css">
			/* Chart.js */
			
			@-webkit-keyframes chartjs-render-animation {
				from {
					opacity: 0.99
				}
				to {
					opacity: 1
				}
			}
			
			@keyframes chartjs-render-animation {
				from {
					opacity: 0.99
				}
				to {
					opacity: 1
				}
			}
			
			.chartjs-render-monitor {
				-webkit-animation: chartjs-render-animation 0.001s;
				animation: chartjs-render-animation 0.001s;
			}
		</style>
	</head>

	<body>
		<!--引入抽取的topbar-->
		<!--模板名：会使用thymeleaf的前后缀配置规则进行解析-->
		<div th:replace="commons/bar::topbar"></div>

		<div class="container-fluid">
			<div class="row">
				<!--引入侧边栏-->
				<div th:replace="commons/bar::#sidebar(activeUri='activity/activity')"></div>

				<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
					<!--需要区分是员工修改还是添加；-->
					<form th:action="@{/activity/addactivity}" method="post">
						<h3>新增活动：</h3>
						<input type="hidden" name="_method" value="put" th:if="${emp!=null}"/>
						<input type="hidden" name="id" th:if="${emp!=null}" th:value="${emp.id}">
						<div class="form-group">
						<label>标题:</label>
						<input name="title" type="text" class="form-control"}>
					    </div>

						<div class="form-group">
							<label>描述：</label>
							<input name="description" type="text" class="form-control">
						</div>

						<div class="form-group">
							<label>图片：</label>
							<input name="coverPic" type="text" class="form-control">
						</div>

						<div class="form-group">
							<label>活动创建者：</label>
							<input name="userName" type="text" class="form-control" th:value="${user.userName}">
						</div>

						<div class="form-group">
							<label>类型：</label>
							<select id="nameid" name="name" class="form-control">
								<div th:each="list,activity:${activity}">
									<option th:text="${list.activityConstom.name}" th:value="${list.activityConstom.name}"></option>
								</div>
							</select>

						</div>

						<div class="form-group">
							<label>活动开始时间：</label>
							<input name="beginTime" type="text" class="form-control">
						</div>

						<div class="form-group">
							<label>结束时间：</label>
							<input name="endTime" type="text" class="form-control">
						</div>

						<div class="form-group">
							<label>活动链接：</label>
							<input name="link" type="text" class="form-control">
						</div>

						<div class="form-group">
							<label>渠道：</label>
							<input name="email" type="checkbox" class="form-control" value="">微信
							<input name="url" type="text" class="form-control">
							<input name="email" type="checkbox" class="form-control" value="">qq
							<input name="url" type="text" class="form-control">
							<input name="email" type="checkbox" class="form-control" value="">微博
							<input name="url" type="text" class="form-control">
						</div>

						<div class="form-group">
							<label>SEO关键字：</label>
							<input name="seoKeywords" type="text" class="form-control">
						</div>

						<div class="form-group">
							<label>SEO描述：</label>
							<input name="seoDescription" type="text" class="form-control">
						</div>

						<div class="form-group">
							<label>关联车型：</label>
							<input name="seoDescription" type="text" class="form-control">
							<a class="btn btn-sm btn-success" href="emp" th:href="@{/addactivity}">新增</a>
							<a class="btn btn-sm btn-success" href="emp" th:href="@{/addactivity}">删除</a>
						</div>

						<div class="form-group">
							<label>标签：</label>
							<input name="tags" type="text" class="form-control">
						</div>

						<button type="button" class="btn btn-primary">取消</button>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<button type="submit" class="btn btn-primary" >保存</button>

					</form>
				</main>
			</div>
		</div>

	</body>

</html>